<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>基本用例管理</title>
    <link rel="stylesheet" href="../../styles/css/metro.css" />
    <link rel="stylesheet" href="../../styles/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../../styles/css/bootstrap-table.min.css" />
    <link rel="stylesheet" href="../../styles/css/bootstrap-combobox.css" />
    <link rel="stylesheet" href="../../styles/css/bootstrap-dialog.css" />
	<link href="../../styles/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="../../styles/css/skinBlue.css" id="skinColour">
    <link rel="stylesheet" href="../../styles/css/basecase.css" id="skinColour">
    <script src="../../jsplugin/jquery.min.js"></script>
    <script src="../../jsplugin/bootstrap.min.js"></script>
    <script src="../../jsplugin/bootstrap-paginator.min.js"></script>
    <script src="../../jsplugin/jquery.ztree.core.js"></script>
    <script src="../../jsplugin/bootstrap-table.min.js"></script>
    <script src="../../jsplugin/bootstrap-combobox.js"></script>
    <script src="../../jsplugin/bootstrap-table-zh-CN.min.js"></script>
    <script src="../../jsplugin/bootstrap-dialog.js"></script>
    <script src="../../jsplugin/moment-with-locales.js"></script>
    <script src="../../jsplugin/bootstrap-datetimepicker.js"></script>
    <script src="../../jsplugin/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="../../common/common.js"></script>
    <script src="../../casemanager/js/baseCommon.js"></script>
    <style>
    	.baseRow{
    		margin-top:4px;
    	}
    	.btn-tree{
    	margin-top:4px;
    	margin-bottom:2px;
    	}
    </style>
</head>
<body>
    <div class="">
        <div style="">
            <div class="col-xs-2 col-md-2">
                <div id="refresh" class="form-group" style="margin-top:20px">
                    <div class="col-sm-8">
                        <input type="text" class="form-control" id="rush">
                    </div>
                    <div class="col-sm-12">
                        <button type="button" class=" btn-tree" title="查询用例" onclick="onLoadZTree()"> <span class="glyphicon glyphicon-refresh" ></button>
                        <button type="button" class=" btn-tree" title="新增子节点" onclick="addBaseCaseTree()"><span class="glyphicon glyphicon-plus-sign" ></button>
                        <button type="button" class=" btn-tree" title="修改节点名称" onclick="editeBaseCaseTree()"><span class="glyphicon glyphicon-edit" ></button>
                        <button type="button" class=" btn-tree" title="删除节点" onclick="deleteBaseCaseTree()"><span class="glyphicon glyphicon-trash" ></button>
                        <button type="button" class=" btn-tree" id="changeFile" title="展开所有节点" onclick="unfoldTree()"><span class="glyphicon glyphicon-folder-open" ></button>
<!--                         <button type="button" class=" btn-tree" title="折叠所有节点" onclick="foldTree()"><span class="glyphicon glyphicon-folder-close" ></button> -->
                    </div>
                </div>
                <!-- 左侧内容区域 -->
                <div class="col-md-12" style="height:685px;margin-top:10px;overflow:auto;">
                    <ul id="tree" class="ztree" style="overflow: auto"></ul>
                </div>
            </div>
            <div class="col-xs-10 col-md-10">
                <div class="panel-body" style="padding-bottom:0px;">
                    <div class="panel panel-default">
                        <div class="panel-heading" id="queryConditions">查询条件</div>
                        <div class="panel-body">
                            <form id="formSearch" class="form-horizontal">
                                <div class="form-group" style="margin-top:15px;">
                                    <label class="control-label one col-sm-1 one baseRow" for="caseTypeSearch">基本用例类型</label>
                                    <div class="col-sm-2 baseRow">
                                        <select class="combobox form-control" name="inline" id="caseTypeSearch">
                                        </select>
                                    </div>
                                    <label class="control-label col-sm-1 one  baseRow" for="caseNameSearch">基本用例名称</label>
                                    <div class="col-sm-2 baseRow">
                                        <input type="text" class="form-control" id="caseNameSearch">
                                    </div>
                                    <label class="control-label col-sm-1 one baseRow" for="caseNumberSearch">基本用例编号</label>
                                    <div class="col-sm-2 baseRow">
                                        <input type="text" class="form-control" id="caseNumberSearch">
                                    </div>
                                    <div class="col-sm-3 baseRow" style="text-align:left;">
                                        <button type="button" style="margin-left:50px;width: 100px;" id="btn_query" class="btn btn-primary" onclick="queryBytableId('caseTables')">查询</button>
                                    </div>
                                    <label class="control-label col-sm-1 one baseRow" for="caseNumberSearch">创建人</label>
                                    <div class="col-sm-2 baseRow">
                                        <input type="text" class="form-control" id="createrSearch">
                                    </div>
                                    <label class="control-label col-sm-1 one baseRow" for="caseNumberSearch">开始日期</label>
                                   <div class='col-md-2 baseRow'>
											<div class='input-group date' id='astsSysLogLoginTime'>
												<input type='text' class="form-control" /> <span
													class="input-group-addon"> <span
													class="glyphicon glyphicon-calendar"></span>
												</span>
											</div>
									</div>
                                    <label class="control-label col-sm-1 one baseRow" for="caseNumberSearch">结束日期</label>
                                    <div class='col-md-2 baseRow'>
											<div class='input-group date' id='astsSysLogEndTime'>
												<input type='text' class="form-control" /><span
													class="input-group-addon"><span
													class="glyphicon glyphicon-calendar"></span> </span>
											</div>
									</div>
                                </div>
                            </form>
                        </div>
                    </div>

                    <div id="toolbar" class="btn-group">
                        <button id="btn_add" style="display:none;" type="button" class="btn btn-default" onclick="addBaseCase()">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
                        </button>
                        <button id="btn_delete" style="display:none;" type="button" class="btn btn-default" onclick="deleteBaseCase()">
                            <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
                        </button>
                        <button id="btn_noRealDelete" style="display:none;" type="button" class="btn btn-default" onclick="noRealDeleteBaseCase()">
                            <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>假删除
                        </button>
                        <button id="btn_imp" type="button" class="btn btn-default" onclick="importFile()">
                            <span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>导入
                        </button>
                        <button id="btn_exp0" type="button" class="btn btn-default" onclick="exportFile(0)">
                            <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>导出所选
                        </button>
                        <button id="btn_relevance" type="button" class="btn btn-default" onclick="relevance()">
                            <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>关联序列
                        </button>
                        <button id="btn_semblance" type="button" class="btn btn-default" onclick="semblanceFun()">
                            <span class="glyphicon glyphicon-zoom-in" aria-hidden="true"></span>相似度
                        </button>
                        <form id="uploadForm" style="width: 0;height: 0;">
                            <input type="file" id="file-upload" name="file" style="width: 0;height: 0;"  onchange="selectFile()" />
                        </form>
                    </div>
                    <div>
                        <table id="caseTables" style="min-width:1900px;table-layout:fixed" ></table>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
		$(document).ready(function() {
			var picker1 = Picker("astsSysLogLoginTime");
			var picker2= Picker("astsSysLogEndTime");
			picker1.on('changeDate', function(e) {
				picker2.datetimepicker('setStartDate', e.date);
			});
			picker2.on("changeDate",function(e) {
				picker1.datetimepicker('setEndDate', e.date);
			});
		});
	</script>
    <script src="../js/TDraw.js"></script>
    <script src="../js/TDrawCanvas.js"></script>
    <script src="../js/baseCase.js"></script>
    <script src="../../common/myAlert.js"></script>
    <script src="../../common/userRole.js"></script>
</body>

</html>